
//
//  ChatUserLayout.m
//  家校互通
//
//  Created by 李赛 on 15/9/9.
//  Copyright (c) 2015年 姬鑫宇. All rights reserved.
//

#import "ChatUserLayout.h"

@implementation ChatUserLayout
- (void)prepareLayout
{
//    //确定所有item的个数
//    NSUInteger itemCounts = [[self collectionView]numberOfItemsInSection:0];
//    //初始化保存所有item attributes的数组
//    self.itemsAttributes = [NSMutableArray arrayWithCapacity:itemCounts];
//    
    self.itemSize=CGSizeMake(60, 90);
    
    NSInteger itemCountsRow=DSF_SCREENWIDTH/60-1;/**<每行item个数*/
    NSInteger minItemSpace=(DSF_SCREENWIDTH-60*itemCountsRow)/(itemCountsRow+1);
    self.sectionInset=UIEdgeInsetsMake(10, minItemSpace, 10, minItemSpace);
    self.minimumInteritemSpacing=minItemSpace;
    self.minimumLineSpacing=10;
    self.scrollDirection=UICollectionViewScrollDirectionVertical;
    
}

@end
